home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 119
/
maccd 119.iso
/
Utilities
/
Mac OS X
/
StartupSoundPrefPane101.dmg
/
StartupSoundPrefPane.pkg
/
Contents
/
Resources
/
InstallationCheck
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Paul Falstad's zsh script
|
2004-03-01
|
418 b
|
18 lines
#!/bin/zsh
OLDEST_VERSION="10.2"
SCRIPT_NAME="InstallationCheck"
VERSION=$(sw_vers | sed -e '/ProductVersion:/!d' | sed -e 's/[[:alnum:]]*:[[:space:]]*//')
if [ -z "${VERSION}" ]; then
echo ${SCRIPT_NAME}: Could not get system version!
exit 100
fi
if command [ "${VERSION}" '<' "${OLDEST_VERSION}" ]; then
echo ${SCRIPT_NAME}: Too old system! Version ${OLDEST_VERSION} or later is required.
exit 99
fi
exit 0;